package com.liang.auth.application.convert;

import com.liang.auth.api.entity.AuthUserDTO;
import com.liang.auth.domain.bo.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserDTOConverter {
    AuthUserDTOConverter INSTANCE = Mappers.getMapper(AuthUserDTOConverter.class);

    AuthUserBO convertDTO2BO(AuthUserDTO authUserDTO);

    AuthUserDTO convertBO2DTO(AuthUserBO authUserBO);

    List<AuthUserDTO> convertBOToDTO(List<AuthUserBO> userInfos);
}
